﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_ORDER_TO_APP
// * CreateDate    : 2013/1/28 16:55:42
// * Creater       : SalesOrderToAppEntity
// * LastChangeDate: 2013/1/28 16:55:42
// * LastChanger   : 2013/1/28 16:55:42
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class SalesOrderToAppEntity : EntityBase
    {
        public SalesOrderToAppTable TableSchema
        {
            get
            {
                return SalesOrderToAppTable.Current;
            }
        }

        public SalesOrderToAppEntity()
        {

        }

        public SalesOrderToAppEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.SalesOrderId = Convert.ToString(CommonFunctions.ToObject(dr["SALES_ORDER_ID"]));
            this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
        }

        public SalesOrderToAppEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.SalesOrderId = Convert.ToString(CommonFunctions.ToObject(dr["SALES_ORDER_ID"]));
            this.ApplicationId = Convert.ToString(CommonFunctions.ToObject(dr["APPLICATION_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return SalesOrderToAppTable.Current;
            }
        }

        #region Perporty List
        public string SalesOrderId
        {
            get { return Convert.ToString(GetData(SalesOrderToAppTable.C_SALES_ORDER_ID)); }
            set { SetData(SalesOrderToAppTable.C_SALES_ORDER_ID, value); }
        }

        public string ApplicationId
        {
            get { return Convert.ToString(GetData(SalesOrderToAppTable.C_APPLICATION_ID)); }
            set { SetData(SalesOrderToAppTable.C_APPLICATION_ID, value); }
        }

        #endregion
    }


}

